package com.mxpio.boot.autoconfigure.message;

import com.mxpio.boot.autoconfigure.security.SecurityApiAutoConfiguration;
import com.mxpio.boot.message.api.MessageApiConfiguration;
import com.mxpio.framework.common.CommonConstant;
import com.mxpio.framework.common.vo.ModuleVO;
import com.mxpio.framework.message.MessageConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnClass(MessageApiConfiguration.class)
@AutoConfigureAfter(MessageApiAutoConfiguration.class)
@Import(MessageConfiguration.class)
@Slf4j
public class MessageAutoConfiguration {

	public MessageAutoConfiguration() {
		log.info("[AutoConfiguration==>]:Message Module Loading");
		CommonConstant.addModule(new ModuleVO("Message","消息模块"));
	}

}
